import os
import sys
import time

os.mkfifo("/tmp/chiasyncpi")

print ("b")
ff = open ('/tmp/chiasyncpi', 'r')
print ("c")

while True:
    print ("aa")
    print (ff.readline())
    print ("bb")
    time.sleep(1)

